package com.onlyyou.order.mapper;

import com.onlyyou.order.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 小野
 * @Date: 2020/1/16 15:34
 */
@Repository
@Mapper
public interface OrderMapper {
    List<Order> findAll(Integer page, Integer limit);
    Integer rows();

    Order add(Order order);

    Order findById(Long orderId);

}
